﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.Security;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;


public partial class UserControls_AddRating : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

  
protected void createRating_Click(object sender, EventArgs e)
{
   
    // Get CategoryID from the query string
    string ProductId = Session["productID"].ToString();
  

    // Execute the insert command
    bool success = Rating.CreateRating(ProductId, newName.Text, newRate.SelectedItem.Text, newComment.Text);
    // Display status message
    Response.Redirect("Rate.aspx");
  
}
}